﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="MemberLogin.aspx.cs" Inherits="WEALTH.MemberLogin" Async="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <link rel="stylesheet" href="css/indexPage.css" type="text/css" media="screen" />
    <script type="text/javascript">
        var email_reg = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
        //注册验证
        CheckRegion = function () {
             
            var UserName = $("#MainContent_txt_UserName").val();
            var PassWord = $("#MainContent_txt_PassWord").val();
            var ComPassWord = $("#MainContent_txt_ComPassWord").val();
            var Phone = $("#MainContent_txt_Phone").val();
            var Email = $("#MainContent_txt_Email").val();
            var RealName = $("#MainContent_txt_RealName").val();
            var Code = $("#MainContent_txt_Code").val();
            var Idcard = $("#MainContent_txt_IDCard").val();
           
            var msg = "";
            if (UserName == "") {
                msg += "会员账号不能为空。<br/>";
            }
            else if (UserName.length < 4 || UserName.length > 20) {
                msg += "会员帐号必须为4-20位字符<br/>";
            }
            if (PassWord == "") {
                msg += "密码不能为空。<br/>";
            }
            else if (PassWord.length < 6 || PassWord.length > 20) {
                msg += "登录密码必须为6-20位字符。<br/>";
            }
            if (ComPassWord == "") {
                msg += "确认密码不能为空。<br/>";
            }
            if (PassWord != ComPassWord) {
                msg += "登录密码与确认密码不一致。<br/>";
            }
            if (Phone == "") {
                msg += "手机号码不能为空。<br/>";
            }
            else if (Phone.length != 11) {
                msg += "手机号码格式不正确。<br/>";
            }
            if (Email == "") {
                msg += "邮箱不能为空。<br/>";
            }
            else if (!email_reg.test(Email)) {
                msg += "邮箱格式不正确。<br/>";
            }
            if (RealName == "") {
                msg += "真实姓名不能为空。<br/>";
            }
            if (Code == "") {
                msg += "验证码不能为空。<br/>";
            }
           
            if (Idcard == "") {
                msg += "证件号不能为空。<br/>";
            }            

            if (msg != "") {
                jBox.alert(msg, '信息提示');
                return false;
            }
        }
        //登录验证
        CheckLogin = function () {
            var LUserName = $("#MainContent_txt_LUserName").val();
            var LPassWord = $("#MainContent_txt_LPassWord").val();

            var msg = "";
            if (LUserName == "") {
                msg += "会员帐号不能为空。<br/>";
            }
            if (LPassWord == "") {
                msg += "登录密码不能为空。<br/>";
            }

            if (msg != "") {
                jBox.alert(msg, '信息提示');
                return false;
            }
            return true;
        }
    </script>
     <div style="background-image: url('images/subIndexTop.jpg'); background-repeat: no-repeat;
        height: 63px; width: 978px">
    </div>
    <div class="memLogin">
        <h4>
            <img alt="已是会员，马上登录" src="images/member/memLoginIcon.jpg" />已是会员，马上登录</h4>
        <div style="padding: 10px 0 0 35px;">
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                    <tr>
                        <td width="80" class="fs14">
                            <span>会员帐号</span>：
                        </td>
                        <td>
                            <asp:TextBox ID="txt_LUserName" name="txt_LUserName" runat="server" CssClass="text"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="fs14">
                            <span>登录密码</span>：
                        </td>
                        <td>
                            <asp:TextBox ID="txt_LPassWord" name="txt_LPassWord" runat="server" CssClass="text"
                                TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="But_Login" CssClass="loginBtn" runat="server" Text="登&#12288;录" OnClientClick="return CheckLogin();"
                                OnClick="But_Login_Click" />
                            <%--<a class="for" href="/member/forget.aspx">忘记密码?
                                                找回密码!</a>--%>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="info mt10">
            <p class="fs14">
                <strong>登录后，您可以享受一下会员专享服务</strong></p>
            <p>
                <span>1.会员独享活动&mdash;</span>定期举办大型讲座、论坛、沙龙、旅游、宴会等会员活动；</p>
            <p>
                <span>2.精选产品推荐&mdash;</span>第一时间优先为您推荐枫帆财富独家包销的优质信托产品；</p>
            <p>
                <span>3.1对1理财服务&mdash;</span>为您配备专属理财师，提供全方位理财咨询、指导与建议；</p>
            <p>
                <span>4.在线风险测试&mdash;</span>为您提供专业风险测试系统，全面评估您的风险承受能力；</p>
            <p>
                <span>5.在线资产配置&mdash;</span>通过专业的分析评估为您量身定制最优化的资产配置方案；</p>
        </div>
        <p class="notice">
            如有任何登陆/注册问题，请拨打 <span><%=strServiceTel%></span>
        </p>
    </div>
    <div class="memReg01">
        <h4>
            <img src="images/member/memRegIcon.jpg" />还不是会员？马上注册！体验优质专业服务！</h4>
        <div class="pl10">
            <ul style="margin-bottom: 10px;" class="clearfix">
                <li>1.创建帐号</li><li>2.激活帐号</li><li>3.注册成功</li>
            </ul>
            <table width="390" cellspacing="0" cellpadding="0" border="0" align="center">
                <tbody>
                    <tr>
                        <th>
                            <em>*</em><span>会员账号</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_UserName" name="txt_UserName"
                                MaxLength="70"></asp:TextBox>
                            <br>
                            <span>4-20位字符(大小写字母、数字、下划线、中文)</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span>登录密码</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_PassWord" name="txt_PassWord"
                                TextMode="Password" MaxLength="20"></asp:TextBox>
                            <br />
                            <span>6-20位字符(大小写字母、数字、符号)</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span>确认密码</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_ComPassWord" name="txt_ComPassWord"
                                TextMode="Password" MaxLength="20"></asp:TextBox>
                            <br />
                            <span>请再次输入您的密码</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span>手机号码</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_Phone" name="txt_Phone" MaxLength="30"></asp:TextBox>
                            <br />
                            <span>请填写正确有效的手机号码，体验优质服务</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span>电子邮箱</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_Email" name="txt_Email" MaxLength="30"></asp:TextBox>
                            <br />
                            <span>请填写正确有效的邮箱地址，用于激活账号</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span>真实姓名</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" runat="server" ID="txt_RealName" name="txt_RealName"
                                MaxLength="70"></asp:TextBox>
                            <br />
                            <span style="font-size: 8px;">&#12288;</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span style="letter-spacing: 6px;">证件号</span>：
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlidcardType" runat="server" Width="62px">
                                <asp:ListItem Value="0">身份证</asp:ListItem>
                                <asp:ListItem Value="1">护照</asp:ListItem>
                            </asp:DropDownList>
                            <asp:TextBox CssClass="text" Style="width: 160px;" runat="server" ID="txt_IDCard"
                                name="txt_IDCard" MaxLength="18"></asp:TextBox>
                            <br />
                            <span style="font-size: 8px;">&#12288;</span>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <em>*</em><span style="letter-spacing: 6px;">验证码</span>：
                        </th>
                        <td>
                            <asp:TextBox CssClass="text" Style="width: 100px;" runat="server" ID="txt_Code" name="txt_Code"
                                MaxLength="4"></asp:TextBox>
                            &nbsp;<img style="cursor: pointer;" alt="点击刷新换一个验证码" src="ViewCode.aspx" onclick="this.src = this.src+'?'"
                                id="txt_YanCodeImage" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            &nbsp;
                        </th>
                        <td style="padding: 10px 0 20px 10px;">
                            <%--<div style="display: none;">
                                <span class="checkbox">
                                    <input type="checkbox" name="chk_IsReceiveInformation" id="chk_IsReceiveInformation"><label
                                        for="chk_IsReceiveInformation">我愿意接收枫帆资讯</label></span><br>
                                <br>
                            </div>--%>
                            <input type="checkbox" checked="checked" class="checkbox">我已阅读并同意<a target="_blank"
                                href="club.aspx">《枫帆服务条款》</a>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            &nbsp;
                        </th>
                        <td>
                            <asp:Button ID="But_Region" CssClass="loginBtn" runat="server" Text="下一步" OnClientClick="return CheckRegion();"
                                OnClick="But_Region_Click" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</asp:Content>
